package com.imooc.imoocbilibili.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.imooc.imoocbilibili.entity.FollowingGroup;
import com.imooc.imoocbilibili.entity.UserFollowing;

import java.util.List;

/**
 * 用户关注表
 *
 * @author jl
 * @since 2022-04-10 19:51:13
 */
public interface UserFollowingService extends IService<UserFollowing> {

    Page<UserFollowing> queryPage(Integer pageNo, Integer pageSize);

    /**
     * 关注用户
     */
    void addUserFollowings(UserFollowing userFollowing);

    /**
     * 获取用户关注列表
     */
    List<FollowingGroup> getUserFollowings();

    /**
     * 获取用户粉丝列表
     */
    List<UserFollowing> getUserFans();
}

